<html>
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>Document</title>
	<script type="text/javascript" src="jquery-1.8.3.js"></script>
</head>
<body>
		<table id="news"></table>
		<script type="text/javascript">
			var data={"data":{
							"count":21,
							"List":[
								{"newsId":1034,"newsTitle":"您好"},
								{"newsId":1035,"newsTitle":"您好1"},
								{"newsId":1036,"newsTitle":"您好2"},
								{"newsId":1037,"newsTitle":"您好3"},
								{"newsId":1038,"newsTitle":"您好4"}
							]
						}
					};
			// var html="<thead><tr><td>新闻编号</td><td>新闻标题</td></tr></thead><tbody>";
			// $.each(data.data.List,function(k,v){
			// 	console.log(v);
			// 	html+='<tr><td>'+v.newsId+'</td><td>'+v.newsTitle+'</td></tr>';
			// });

			// $("#news").html(html+"</tbody>");
			 var n="<thead><tr><td>新闻编号</td><td>新闻标题</td></tr></thead><tbody>";
			$.each(data.data.List, function(k,c){
				n+='<tr><td>'+c.newsId+'</td><td>'+c.newsTitle+'</td></tr>';
			});
			$("#news").html(n+'</tbody>');




			var n="<thead><tr><td>新闻编辑</td><td>新闻编号</td></tr></theader><tbody>";
			$.each(data.data.List,function(k,v){
				n+='<tr><td>'+v.newsId+'</td><td>'+c.newsTitle+'</td></tr>'});
			$("#news").html(n+"</tbody>");

		</script>
</body>
</html>